#ifndef TIMER_H
#define TIMER_H

#include <GL/glut.h>

#include <ctime>
#include <string>
#include <sstream>
using namespace std;

class Timer
{
	public:
		
		Timer(GLfloat, GLfloat);
		~Timer();
		
		void setOrthographicProjection();
		void resetPerspectiveProjection();
		
		void displayTime();
		
		void startTimer();
		
	private:
		
		void setText();
		
		GLfloat scrPosX, scrPosY;
		
		double dTime;
		string sTime;
		
		time_t start, end;
};


#endif
